package com.gxa.xc.rbac.pojo;

import java.util.ArrayList;
import java.util.List;

/**
 * 菜单实体
 * @author:IT-CNLM
 * @date:Created at 2020/10/26
 */
public class Menu {


    private Integer menuId;

    private Integer parentId;

    /**
     * 菜单名字
     */
    private String menuName;
    /**
     * 菜单的跳转路径
     */
    private String menuUrl;

    /**
     * 子级菜单
     */
    private List<Menu> subMenus = new ArrayList<>();


    public Menu() {
    }

    public Menu(Integer menuId, Integer parentId, String menuName, String menuUrl) {
        this.menuId = menuId;
        this.parentId = parentId;
        this.menuName = menuName;
        this.menuUrl = menuUrl;
    }


    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public List<Menu> getSubMenus() {
        return subMenus;
    }

    public void setSubMenus(List<Menu> subMenus) {
        this.subMenus = subMenus;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "menuId=" + menuId +
                ", parentId=" + parentId +
                ", menuName='" + menuName + '\'' +
                ", menuUrl='" + menuUrl + '\'' +
                ", subMenus=" + subMenus +
                '}';
    }
}
